package com.meterreadingsys.activity;

import com.meterreadingsys.activity.usermanager.HistoryWaterInfoActivity;
import com.meterreadingsys.activity.usermanager.QueryUserInfoActivity;

import android.app.Activity;
import android.content.Intent;


import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * 用户基本信息查询
 * @author king
 *
 */
public class UserManagerActivity extends Activity implements OnClickListener{
	
	public Button button1;
	
	public Button button2;
	
	public Button button3;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.usermanager);
		//本月抄表
		button1=(Button)findViewById(R.id.monthlyreading);
		//历史用水信息
		button2=(Button)findViewById(R.id.historywater);
		//用户信息
		button3=(Button)findViewById(R.id.userinfo);
		button1.setOnClickListener(this);
		button2.setOnClickListener(this);
		button3.setOnClickListener(this);
		 
	}

	@Override
	public void onClick(View view) {
		switch (view.getId()) {
		case R.id.historywater:
			Intent intent=new Intent(UserManagerActivity.this, HistoryWaterInfoActivity.class);
			startActivity(intent);
			break;
		case R.id.userinfo:
			Intent intent1=new Intent(UserManagerActivity.this, QueryUserInfoActivity.class);
			startActivity(intent1);
		default:
			break;
		}
		
	}

	
     
	
}
